package com.yao.shop.service;

import com.yao.shop.common.Page;
import com.yao.shop.pojo.Dto.ShopCouponDto;
import com.yao.shop.pojo.ShopCoupon;

import java.util.List;

public interface ShopCouponService {
    void save(ShopCouponDto shopCouponDto);

    void delete(Long id);

    void down(Long id);

    Page<ShopCoupon> getByPage(Page<ShopCoupon> page);

    List<ShopCoupon> getProductCoupon(Long productId);

    void updateTimeoutCoupon();

    void catchCoupon(ShopCoupon shopCoupon);
}
